package com.zhang.hadoop.spring.checker;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author zhang yufei
 * @date 2022/6/28 18:31
 **/
@Data
public class UserBO extends PeopleBO{

    @NotNull(message="id不能为空")
    private Long id;

    private String name;

    private Integer age;

    //@NotNull(message="电话不能为空")
    @Valid
    private PhoneBO phoneBO;

    @Valid
    private List<BookBO> bookBOList;
}
